.

Test.ExceptionTest3

Creates an MPX exception from an MPX error value and a message string. This is useful for testing an application’s error handling routines.

Version History

Introduced in MPX 2.0.

Result

Void

Arguments

 
Argument Type Description
err Mpx.Error The MPX error to associate with the MPX exception.
msgText String The message string to associate with the MPX exception.

Common Exceptions

 
Error Occurs when...
Assertion If the specified error code is not valid.

Visual Basic

Syntax

Sub ExceptionTest3(err As Mpx.Error, msgText As String)

Sample Code

 

Mpx.Test.ExceptionTest3(Mpx.Error.Parameter, "Test String");


Sample Application

ErrorHandling1

C#

Syntax

void ExceptionTest3(Mpx.Error err, string msgText);

Sample Code

 

Mpx.Test.ExceptionTest3(Mpx.Error.Parameter, "Test String");

 

See Also

ExceptionTest1
ExceptionTest2

Enumerations
Error

Overviews
Error Handling Overview



       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering